using System;
using System.Collections.Generic;
using System.Text;

namespace codegen.template
{
    public class TCommon
    {
        public static string GeneratePHPHeadComment(string className,string functionName)
        { 
            StringBuilder sb = new StringBuilder();

            sb.Append("<?php	" + Environment.NewLine);

            sb.Append("/*****************************************************************************\\" + Environment.NewLine);
            sb.Append("PHP \"jeegoon.com object function \" library" + Environment.NewLine);
            sb.AppendFormat("@class:{0}" + Environment.NewLine, functionName);
            sb.AppendFormat("@function:{0}" + Environment.NewLine, functionName);
            sb.AppendFormat("@version: 0.1 - {0}" + Environment.NewLine, DateTime.Now.ToShortDateString());
            sb.Append("@author: Seraph Jiang - http://www.jeegoon.com/wordpress/" + Environment.NewLine);
            sb.Append("\\*****************************************************************************/" + Environment.NewLine);

            return sb.ToString();

        }
    }
}
